/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.bkav.portal.portlet.product.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Order_}.
 * </p>
 *
 * @author    ducdvd
 * @see       Order_
 * @generated
 */
public class Order_Wrapper implements Order_, ModelWrapper<Order_> {
	public Order_Wrapper(Order_ order_) {
		_order_ = order_;
	}

	public Class<?> getModelClass() {
		return Order_.class;
	}

	public String getModelClassName() {
		return Order_.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("orderId", getOrderId());
		attributes.put("groupId", getGroupId());
		attributes.put("companyId", getCompanyId());
		attributes.put("userId", getUserId());
		attributes.put("userName", getUserName());
		attributes.put("createDate", getCreateDate());
		attributes.put("modifiedDate", getModifiedDate());
		attributes.put("productId", getProductId());
		attributes.put("email", getEmail());
		attributes.put("orderSL", getOrderSL());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long orderId = (Long)attributes.get("orderId");

		if (orderId != null) {
			setOrderId(orderId);
		}

		Long groupId = (Long)attributes.get("groupId");

		if (groupId != null) {
			setGroupId(groupId);
		}

		Long companyId = (Long)attributes.get("companyId");

		if (companyId != null) {
			setCompanyId(companyId);
		}

		Long userId = (Long)attributes.get("userId");

		if (userId != null) {
			setUserId(userId);
		}

		String userName = (String)attributes.get("userName");

		if (userName != null) {
			setUserName(userName);
		}

		Date createDate = (Date)attributes.get("createDate");

		if (createDate != null) {
			setCreateDate(createDate);
		}

		Date modifiedDate = (Date)attributes.get("modifiedDate");

		if (modifiedDate != null) {
			setModifiedDate(modifiedDate);
		}

		Long productId = (Long)attributes.get("productId");

		if (productId != null) {
			setProductId(productId);
		}

		String email = (String)attributes.get("email");

		if (email != null) {
			setEmail(email);
		}

		String orderSL = (String)attributes.get("orderSL");

		if (orderSL != null) {
			setOrderSL(orderSL);
		}
	}

	/**
	* Returns the primary key of this order_.
	*
	* @return the primary key of this order_
	*/
	public long getPrimaryKey() {
		return _order_.getPrimaryKey();
	}

	/**
	* Sets the primary key of this order_.
	*
	* @param primaryKey the primary key of this order_
	*/
	public void setPrimaryKey(long primaryKey) {
		_order_.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the order ID of this order_.
	*
	* @return the order ID of this order_
	*/
	public long getOrderId() {
		return _order_.getOrderId();
	}

	/**
	* Sets the order ID of this order_.
	*
	* @param orderId the order ID of this order_
	*/
	public void setOrderId(long orderId) {
		_order_.setOrderId(orderId);
	}

	/**
	* Returns the group ID of this order_.
	*
	* @return the group ID of this order_
	*/
	public long getGroupId() {
		return _order_.getGroupId();
	}

	/**
	* Sets the group ID of this order_.
	*
	* @param groupId the group ID of this order_
	*/
	public void setGroupId(long groupId) {
		_order_.setGroupId(groupId);
	}

	/**
	* Returns the company ID of this order_.
	*
	* @return the company ID of this order_
	*/
	public long getCompanyId() {
		return _order_.getCompanyId();
	}

	/**
	* Sets the company ID of this order_.
	*
	* @param companyId the company ID of this order_
	*/
	public void setCompanyId(long companyId) {
		_order_.setCompanyId(companyId);
	}

	/**
	* Returns the user ID of this order_.
	*
	* @return the user ID of this order_
	*/
	public long getUserId() {
		return _order_.getUserId();
	}

	/**
	* Sets the user ID of this order_.
	*
	* @param userId the user ID of this order_
	*/
	public void setUserId(long userId) {
		_order_.setUserId(userId);
	}

	/**
	* Returns the user uuid of this order_.
	*
	* @return the user uuid of this order_
	* @throws SystemException if a system exception occurred
	*/
	public java.lang.String getUserUuid()
		throws com.liferay.portal.kernel.exception.SystemException {
		return _order_.getUserUuid();
	}

	/**
	* Sets the user uuid of this order_.
	*
	* @param userUuid the user uuid of this order_
	*/
	public void setUserUuid(java.lang.String userUuid) {
		_order_.setUserUuid(userUuid);
	}

	/**
	* Returns the user name of this order_.
	*
	* @return the user name of this order_
	*/
	public java.lang.String getUserName() {
		return _order_.getUserName();
	}

	/**
	* Sets the user name of this order_.
	*
	* @param userName the user name of this order_
	*/
	public void setUserName(java.lang.String userName) {
		_order_.setUserName(userName);
	}

	/**
	* Returns the create date of this order_.
	*
	* @return the create date of this order_
	*/
	public java.util.Date getCreateDate() {
		return _order_.getCreateDate();
	}

	/**
	* Sets the create date of this order_.
	*
	* @param createDate the create date of this order_
	*/
	public void setCreateDate(java.util.Date createDate) {
		_order_.setCreateDate(createDate);
	}

	/**
	* Returns the modified date of this order_.
	*
	* @return the modified date of this order_
	*/
	public java.util.Date getModifiedDate() {
		return _order_.getModifiedDate();
	}

	/**
	* Sets the modified date of this order_.
	*
	* @param modifiedDate the modified date of this order_
	*/
	public void setModifiedDate(java.util.Date modifiedDate) {
		_order_.setModifiedDate(modifiedDate);
	}

	/**
	* Returns the product ID of this order_.
	*
	* @return the product ID of this order_
	*/
	public long getProductId() {
		return _order_.getProductId();
	}

	/**
	* Sets the product ID of this order_.
	*
	* @param productId the product ID of this order_
	*/
	public void setProductId(long productId) {
		_order_.setProductId(productId);
	}

	/**
	* Returns the email of this order_.
	*
	* @return the email of this order_
	*/
	public java.lang.String getEmail() {
		return _order_.getEmail();
	}

	/**
	* Sets the email of this order_.
	*
	* @param email the email of this order_
	*/
	public void setEmail(java.lang.String email) {
		_order_.setEmail(email);
	}

	/**
	* Returns the order s l of this order_.
	*
	* @return the order s l of this order_
	*/
	public java.lang.String getOrderSL() {
		return _order_.getOrderSL();
	}

	/**
	* Sets the order s l of this order_.
	*
	* @param orderSL the order s l of this order_
	*/
	public void setOrderSL(java.lang.String orderSL) {
		_order_.setOrderSL(orderSL);
	}

	public boolean isNew() {
		return _order_.isNew();
	}

	public void setNew(boolean n) {
		_order_.setNew(n);
	}

	public boolean isCachedModel() {
		return _order_.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_order_.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _order_.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _order_.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_order_.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _order_.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_order_.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new Order_Wrapper((Order_)_order_.clone());
	}

	public int compareTo(com.bkav.portal.portlet.product.model.Order_ order_) {
		return _order_.compareTo(order_);
	}

	@Override
	public int hashCode() {
		return _order_.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.bkav.portal.portlet.product.model.Order_> toCacheModel() {
		return _order_.toCacheModel();
	}

	public com.bkav.portal.portlet.product.model.Order_ toEscapedModel() {
		return new Order_Wrapper(_order_.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _order_.toString();
	}

	public java.lang.String toXmlString() {
		return _order_.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_order_.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Order_ getWrappedOrder_() {
		return _order_;
	}

	public Order_ getWrappedModel() {
		return _order_;
	}

	public void resetOriginalValues() {
		_order_.resetOriginalValues();
	}

	private Order_ _order_;
}